class GameConfig < ActiveRecord::Base
  
  has_attached_file :game_image, :styles =>{ :medium => "195x195>", :small=>"50x50>" }
  has_attached_file :header_image
  has_attached_file :background_image, :styles=>{:medium=>"100x100>"}
  attr_accessible :invitation_action_text, :invitation_accept_label, :invitation_content, :publish_message,:publish_att_name, :publish_att_caption, :publish_att_description, :publish_action_link_text, :publish_user_message_prompt, :publish_auto, :max_tentatives, :points_multiplier, :js_messages, :background_image, :game_image, :header_image, :name, :tag_line, :welcome_line, :description
  
  
  def self.game_config
    #Try to find the only one
    game_cfg = GameConfig.find(:first)
    
  end
end
